package moodish.Junit;

import static org.junit.Assert.*;
import moodish.comm.ClientMessage;
import moodish.comm.ClientSideMessage.Type;

import org.junit.Before;
import org.junit.Test;

public class JUnitClientMessage {
	private ClientMessage cm;

	@Before
	public void setUp() {
		cm = new ClientMessage("Joao", "Happy", Type.MOODISH_MESSAGE);
	}

	@Test
	public void test() {
		assertEquals(cm.getSendersNickname(), "Joao");
		assertEquals(cm.getPayload(), "Happy");
		assertEquals(cm.getType(), Type.MOODISH_MESSAGE);
	}

}
